//
//  FromViewController.swift
//  testRxSwift
//
//  Created by 火星人 on 2017/7/24.
//  Copyright © 2017年 火星人. All rights reserved.
//

import UIKit
import RxSwift

class FromViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.view.addTapWithHandle { (tap) in
            
            let disBag = DisposeBag()
            Observable<String>.from(["I", "Love", "You"])
            .subscribe(onNext: { (event) in
                print(event)
                
            }, onCompleted: {
                print("onCompleted")
                
            }).disposed(by: disBag)
        }
 
    }
}
